import IPConfig from '@/constants/IPConfig'
import networkRequest from '@/utils/network/XSRquest'

//查询banner
export function getBannerAll(params) {
  return networkRequest(`${IPConfig.projectIP}/leaderboard/campus/activity/banner/list`, params, 'post')
}
//修改banner
export function updateBanner(params) {
  return networkRequest(`${IPConfig.projectIP}/leaderboard/campus/activity/banner/update`, params, 'put')
}
//新增banner
export function addBanner(params) {
  return networkRequest(`${IPConfig.projectIP}/leaderboard/campus/activity/banner/save`, params, 'post')
}
//删除banner
export function deleteBanner(params) {
  return networkRequest(`${IPConfig.projectIP}/leaderboard/campus/activity/banner/delete`, params, 'delete')
}
